package com.example.demo.tools;

import lombok.Data;

/**
 * Creat with IntelliJ IDEA
 * Description:
 * User:WZW
 * Date:2022-08-30
 * Time:21:51
 */
@Data
public class ResponseBody <T>{
    private int status;//状态码
    private String message;//状态描述信息
    private T data;//返回给前端的数据

    public ResponseBody(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
